home *** CD-ROM | disk | FTP | other *** search
/ Assassins - Ultimate CD Games Collection 4 / Assassins 4 (1999)(Weird Science).iso / shoot-ups / taskforce_27 / install_taskforce < prev    next >
Encoding:
Text File  |  1998-07-11  |  2.5 KB  |  115 lines

  1. ; $VER: Install_TaskForce 1.08 (11.07.98)
  2.  
  3. (complete 0)
  4.  
  5. ; version check
  6. (if (< (/ (getversion) 65536) 37)
  7.     (abort "You must be using Kickstart 2.04 or higher to run TaskForce.")
  8. )
  9.  
  10. (welcome)
  11.  
  12. (set @default-dest
  13.     (askdir
  14.         (prompt "Please choose a directory where to install the game. A directory named \"TaskForce\" will be created.")
  15.         (help @askdir-help)
  16.         (default @default-dest)
  17.     )
  18. )
  19.  
  20. (complete 10)
  21.  
  22. (set #missions 31)    ; default missions to be installed
  23. (if (= @user-level 2)
  24.     (set #missions
  25.         (askoptions
  26.             (prompt "Select the missions you wish to install.")
  27.             (help (cat
  28.                 "The mission files are needed to play TaskForce. "
  29.                 "Each mission introduces new characters, defines "
  30.                 "other objectives, and usually also offers a "
  31.                 "different setting. It is recommended to copy all files. "
  32.                 "However, you may opt not to install all available "
  33.                 "missions because of low harddisk space, for example "
  34.                 "(rather improbable, isn't it?).\n"
  35.                 "The number in brackets indicates whether it is a "
  36.                 "scenario for one or two human players."
  37.             ))
  38.             (choices "Hide & Seek (1)" "Plasma! (1)" "Prison (1)" "Project: Pygmalion (1)" "Urban Combat (2)")
  39.             (default #missions)
  40.         )
  41.     )
  42. )
  43.  
  44. (complete 20)
  45.  
  46. (set #instdir (tackon @default-dest "TaskForce") )
  47.  
  48. (makedir #instdir (infos))
  49. (makedir (tackon #instdir "Games"))
  50. (makedir (tackon #instdir "Missions"))
  51. (makedir (tackon #instdir "Missions/OnePlayer"))
  52. (makedir (tackon #instdir "Missions/TwoPlayers"))
  53. (makedir (tackon #instdir "Briefings"))
  54.  
  55. (complete 30)
  56.  
  57. (copyfiles
  58.     (prompt "Copying game files...")
  59.     (help @copyfiles-help)
  60.     (source "")
  61.     (dest #instdir)
  62.     (choices "TaskForce" "Editor" "Data" "Docs" "Briefings.info")
  63.     (infos)
  64. )
  65.  
  66. (complete 65)
  67.  
  68. (working "\n\n\nTaskForce is now installing the mission files...")
  69.  
  70. (set n 0)
  71. (while
  72.     (set #missionfiles
  73.         (select n
  74.             "OnePlayer/Hide & Seek"
  75.             "OnePlayer/Plasma"
  76.             "OnePlayer/Prison"
  77.             "OnePlayer/Pygmalion"
  78.             "TwoPlayers/Urban Combat"
  79.             ""
  80.         )
  81.     )
  82. (
  83.     (if (IN #missions n)
  84.         (
  85.             (copyfiles
  86.                 (source "Missions/")
  87.                 (dest (pathonly (tackon (tackon #instdir "Missions/") #missionfiles) ) )
  88.                 (choices (cat #missionfiles ".mission"))
  89.                 (nogauge)
  90.             )
  91.             (copyfiles
  92.                 (source "Briefings/")
  93.                 (dest (tackon #instdir "Briefings"))
  94.                 (choices (fileonly #missionfiles))
  95.                 (infos)
  96.                 (nogauge)
  97.             )
  98.         )
  99.     )
  100.     (set n (+ n 1))
  101.     (complete (+ 65 (* n 5)))
  102. ))
  103.  
  104. (complete 90)
  105.  
  106. (copylib
  107.     (prompt "Installing reqtools.library")
  108.     (help @copylib-help)
  109.     (source "Libs/reqtools.library")
  110.     (dest "LIBS:")
  111.     (confirm)
  112. )
  113.     
  114. (complete 100)
  115.